package com.juzhitest.cloudM.controller;

import com.juzhitest.cloudM.service.StressTestingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class StressTestingController {

    @Autowired
    private StressTestingService stressTestingService;

    //localhost:8080/use跳转到Hello页面
    @RequestMapping("/use")
    public String helloWord(){
        System.out.print("OK");
        return "test";
    }

    @RequestMapping("/show")
    @ResponseBody
    public ModelAndView show(){
        ModelAndView modelAndView = new ModelAndView("show");
        return modelAndView;
    }

}
